package GDoc::DB::Documents;

use strict;
use warnings;

use base 'DBIx::Class';

__PACKAGE__->load_components( 'PK::Auto', 'InflateColumn::DateTime', 'Core' );
__PACKAGE__->table( 'documents' );
__PACKAGE__->add_columns( s3_key           => { }, 
                          identifier       => { }, 
                          description      => { }, 
                          content_type     => { },
                          content_length   => { },
                          updated          => { data_type => 'datetime' }
                        );

__PACKAGE__->set_primary_key( 's3_key' );

__PACKAGE__->has_many( doc_meta => 'GDoc::DB::DocumentMeta', 's3_key' );

1;

